/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.fatecpg.mdioficina;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;


public class Conexão {

    public static void Conecta(){
        try {
            Class.forName("oracle.jdbc.driver.OracleDriver");
            Connection con = DriverManager.getConnection("jdbc:oracle:thin:@192.168.0.4:1521:xe", "easymec", "ice719337915");
            Statement stmt = con.createStatement();


             //*ResultSet receberá os comandos sql a serem executados.

             //ResultSet rs = stmt.executeQuery(sql);
        } catch (Exception ex) {
            Logger.getLogger(Conexão.class.getName()).log(Level.SEVERE, null, ex);
        }

    }
}
